//
//  BubbleSprite.h
//  SpaceStorm
//
//  Created by 祥 雍 on 13-7-12.
//  Copyright (c) 2013年 __MyCompanyName__. All rights reserved.
//
//
//  九宫格

#import <Foundation/Foundation.h>
#import "cocos2d.h"

@interface BubbleSprite : CCSprite
{
    
}

+(id)spriteWithFile:(NSString*)file
               size:(CGSize)size
            leftCap:(NSInteger)leftcap
             topCap:(NSInteger)topcap;  

-(id)initWithFile:(NSString*)file 
             size:(CGSize)size
          leftCap:(NSInteger)leftcap 
           topCap:(NSInteger)topcap;  

+(id)spriteWithFrameName:(NSString*)frameName
               size:(CGSize)size
            leftCap:(NSInteger)leftcap
             topCap:(NSInteger)topcap; 

-(id)initWithFrameName:(NSString*)frameName 
             size:(CGSize)size
          leftCap:(NSInteger)leftcap 
           topCap:(NSInteger)topcap; 

-(id)initWithImage:(UIImage*)image 
             size:(CGSize)size
          leftCap:(NSInteger)leftcap 
           topCap:(NSInteger)topcap;

-(UIImage *) convertSpriteToImage:(CCSprite *)sprite;
@end
